﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="publish.aspx.cs" Inherits="BackGround_DetailInfo"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
var oEditer;
function CustomValidate(source, arguments)
{
    var value = oEditer.GetXHTML(true);
    if(value=="")
    {
       arguments.IsValid = false;     
    }
    else 
    { 
        arguments.IsValid = true; 
    } 
}
function FCKeditor_OnComplete( editorInstance )
{ 
    oEditer = editorInstance;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发布新闻</title>
    </head>
<body style="background-repeat: no-repeat">
    <form id="form1" runat="server">
        <div style="background-repeat: no-repeat">
            <table cellpadding="0" cellspacing="0" style="
                position: absolute; height: 517px; left: 51px; top: 22px; width: 569px;">
                <tr>
                    <td align="left" height="400" style="text-align: center" valign="middle">
                <table style=" height: 116px" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td  align="left" style="width:50; font-size:small" colspan="2">
                            信息标题：<asp:TextBox ID="txtTitle" runat="server"  Width="300px" MaxLength="24"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"  Font-Size="12px"
                                ErrorMessage="* 必填项"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                       <td style="width: 336px" align="left" colspan="2">
                           <%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>  
                         <fckeditorv2:fckeditor ID="txtInfo" runat="server" DefaultLanguage="zh-cn" 
                                ToolbarSet = "Basic" Height="400px" Width="520px"></fckeditorv2:fckeditor></td>
                        <td>
                            <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtInfo" ErrorMessage="*"
                             ClientValidationFunction="CustomValidate" ValidateEmptyText="true"></asp:CustomValidator></td>
                    </tr>
                    <tr>
                        <td align="left" style="width:50; font-size:small; text-align: center;" 
                            colspan="2">
                            联系人：<asp:TextBox ID="txtLinkMan" runat="server" style="text-align: left"></asp:TextBox> 
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否同时发布图片新闻
                                
                            
                            : <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="RadioButtonList1" Font-Size="12px"
                                ErrorMessage="* 必选"></asp:RequiredFieldValidator></td>
                          <tr>
                          <td style="text-align: right; font-size: small;">
                                
                           <asp:RadioButtonList ID="RadioButtonList1" Width="100px"
                                runat="server" style="text-align: right">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="2">否</asp:ListItem>
                            </asp:RadioButtonList>
                            </td>
                          
                            </tr>
                          <tr>
                                    
                                    <td  style="width:50px"></td>           
                    </tr>
                    <tr><td style="height:20px"></td></tr>
                    <tr> 
                        <td style="text-align:center">
            <asp:ImageButton ID="imgBtnAdd" runat="server" AlternateText="发布信息"  
                    OnClick="imgBtnAdd_Click"  ImageUrl="images/kaishifa.jpg" />
                        </td>
                    </tr>
                </table>
                        </td>
                                </tr>
                                
                            </table>
            <a href="javascript:go()"></a>
        </div>
    </form>
</body>
</html>
